package com.wfg.expresscompany.Service.impl;

import com.wfg.expresscompany.Service.ShippingChannels;
import com.wfg.expresscompany.entity.Package;
import com.wfg.expresscompany.enums.ShippingChannelsEnum;
import org.springframework.stereotype.Service;

/**
 * @author: 王富贵
 * @description: 汽车渠道
 * @createTime: 2023/05/24 22:18
 */
@Service
public class CartChannel implements ShippingChannels {
    @Override
    public ShippingChannelsEnum getShippingChannels() {
        return ShippingChannelsEnum.CART;
    }

    @Override
    public void transport(Package pkg) {
        System.out.println("使用汽车渠道发货，货物信息 -> " + pkg.toString());
    }
}
